﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example10.aspx.cs" Inherits="Chapter19.Example10" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 19-10 使用 border-attachment 属性</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
    <link rel="shortcut ico" href="images/favicon.ico" type="image/x-ico" />
    <style type="text/css">
        textarea {
            border: medium double black;
            background-color: lightgray;
            background-image: url(images/banana.png);
            background-size: 60px 60px;
            background-repeat: repeat;
            background-attachment: scroll;
            width: 20em;
            height: 10em;
            font-family: Consolas;
        }
    </style>
</head>
<body>
    <p>
        <textarea id="text" rows="8" cols="30"></textarea>
        <script>
            var content = "There are lots of different kinds of fruit - there are you over 500 varieties of banana alone." + "\n" +
            "By the time we add the countless types of apples, " + "\n" +
            "oranges, " + "\n" +
            "and other well-known fruit," + "\n" +
            "we are faced with thousands of choices.";
            document.getElementById("text").innerText = content;
        </script>
    </p>
</body>
</html>
